// Qt Includes
#include <QApplication>
#include <QHostAddress>
#include <QSettings>

// Local Includes
#include "TeaMaker.h"

// ************************************************************
// Main
// ************************************************************
int main(int argc, char *argv[])
{
	QApplication app(argc, argv);
	QApplication::setQuitOnLastWindowClosed(false);
	QApplication::setOrganizationName("TeaMaker");
	QApplication::setApplicationName("TeaMaker Server");
	
	CTeaMaker teaMaker;
	QSettings settings;
	int nPort = settings.value("Network/tcpPort").toInt();

	teaMaker.listen(QHostAddress::Any, nPort);

	return app.exec();
}
